/**
 * 配置该文件可以参考:
 * https://cli.vuejs.org/zh/config/#%E7%9B%AE%E6%A0%87%E6%B5%8F%E8%A7%88%E5%99%A8
 *
 */
//const url = 'https://www.fastmock.site/mock/552fac5cc88f27249bff9351eeca2683/api'
const url= 'http://116.205.138.74:8080'  //'http://192.168.2.20:8080'
// 基础路径，发布前修改这里,当前配置打包出来的资源都是相对路径
let publicPath = './'
module.exports = {
  configureWebpack: {
    externals: {
      "BMap": "BMap"
    }
  },
  publicPath: publicPath,
  // eslint校验
  lintOnSave: false,
  productionSourceMap: false,
  // 配置转发代理
  devServer: {
    port: 3010, // 端口
    proxy:{
       '/admin': {
         target: url,
         changOrigin: true,
         pathRewrite: {
          '^/admin': '/admin'
        }
    }
  }
  }
}

